package com.dongdong.api;


import com.dongdong.model.TbItem;
import com.dongdong.vo.CartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("dds-cart-service")
public interface CartApi {   //openfeign的远程调用 映射对应方法

    @GetMapping("/cart/getCartList")
    public List<CartVO> getCartList(@RequestHeader String token);
}
